import NProgress from 'nprogress' // Progress 进度条
import 'nprogress/nprogress.css' // Progress 进度条样式

export default {
  beforeEachHandler (to, from, next) {
    NProgress.start()
    next()
  },
  afterEachHandler () {
    NProgress.done() // 结束Progress
  }
}
